<h1>Listing campsites</h1>

<table>
  <tr>
    <th>Camp location</th>
    <th>Capacity</th>
    <th>Max stay</th>
    <th>Walk</th>
    <th>Fees</th>
  </tr>

<% for campsite in @campsites %>
  <tr>
    <td><%=h campsite.camp_location %></td>
    <td><%=h campsite.capacity %></td>
    <td><%=h campsite.max_stay %></td>
    <td><%=h campsite.walk_id %></td>
    <td><%=h campsite.fees_id %></td>
    <td><%= link_to 'Show', campsite %></td>
    <td><%= link_to 'Edit', edit_campsite_path(campsite) %></td>
    <td><%= link_to 'Destroy', campsite, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New campsite', new_campsite_path %>
